.module
  %h4= @config["title"]
  - @langs =Dir.entries(RAILS_ROOT+"/lang")
  %ul
    %li
      %form{:action=>url_for(:controller => 'plugin/langswitch', :action=> 'changelang')}
        %select{:id=>"langswitch", :name=>"langswitch"}
          - for lang in @langs
            - if lang[0]!=46 
              - lang=lang[0..-4]
              - if session[:language].to_s==lang.to_s 
                %option{:value=>lang,:selected=>"selected"}
                  = lang
              - else    
                %option{:value=>lang}
                  = lang
        = submit_tag _('switch')

